package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Jaani Francis Nickolas
 * Date: 26/9/13
 * Time: 9:26 PM
 * To change this template use File | Settings | File Templates.
 */
public class Movie
{
    private String title;
    private int year;
    private String director;
    private String rating;

    public Movie(String temporaryTitle, int temporaryYear, String temporaryDirector, String temporaryRating)
    {
        title = temporaryTitle;
        year = temporaryYear;
        director = temporaryDirector;
        rating = temporaryRating;
    }

    public void displayMovieDetails()
    {
        String displayText, gap = " ";
        displayText = title + gap + year + gap + director + gap + rating;
        System.out.println(displayText);
    }
}
